<!DOCTYPE html>
<html>
<head>
    <title>收货地址管理</title>
    <link rel="stylesheet" type="text/css" href="/css/styles.css">
    <script src="/js/address.js" defer></script>
</head>
<body>
    <header>
        <h1>收货地址管理</h1>
        <a href="/user">返回用户主页</a>
    </header>

    <section>
        <h2>收货地址</h2>
        <ul id="address-list">
        </ul>
        <button onclick="showAddAddressForm()">添加收货地址</button>
        <form id="add-address-form" action="/user/add-address" method="post" style="display:none;">
            <label>地址:</label>
            <input type="text" name="address" required>
            <button type="submit">添加</button>
        </form>
    </section>
</body>
</html>